package com.github.llyb120.performance.generator;

import cn.hutool.core.util.RandomUtil;

/**
 * @Author: Administrator
 * @Date: 9/10/2021 3:39 PM
 */
public class NumberGenerator implements Generator<String>{

    int num = 10;

    public NumberGenerator() { }

    public NumberGenerator(int num) {
        this.num = num;
    }

    public String generate() throws Exception {
        return RandomUtil.randomNumbers(num);
    }
}
